﻿
--#include "data\config\misc\scriptTimerConfig\activityTips.lua" once 

function SendAllActivityTips(ActorPtr)
  local count = #activityTips
	local npack = DataPack.allocPacket(ActorPtr, LogicCmd.miscSys.sysId, LogicCmd.miscSys.sub.sSendAllActivityTips)  --申请一个数据包
	DataPack.writeByte(npack, count);
	for i = 1, count do
		DataPack.writeString(npack,activityTips[i].tips)
		DataPack.writeString(npack,activityTips[i].ensure)
	end
	DataPack.flush(npack)
end

MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cSendAllActivityTips, SendAllActivityTips); -- 注册协议处理函数